<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UserRights
 *
 * @author shenlon
 */
class UserRights {

    private $rights;

    public function __construct($user) {
        //WCZYTANIE PRAW Z BD
    }

    public static function changeRights($user, $rights) {
        //ZAPIS DO BAZY
    }

    public static function clearRights($user) {
        //USUNIĘCIE Z BAZY
        //USTALENIE DOMYŚLNYCH
    }

    public function __get($right) {
        if (in_array($right, $this->rights))
            return true;
        return false;
    }

}

?>
